/**
 * Created by frank on 2017/9/11.
 */
;(function(window){
    var $getEleById = function(id){
        return document.getElementById('id')
    },
        haha=function(){alert('哈')},
        $getElesByName = function(className){
            return document.getElementsByClassName(className);
        };
   var myFocus = function(settings){
       return new myFocus.constr(settings);
   };
   myFocus.extend = function(){
       var dest = myFocus;
       for(var i =0;i<arguments.length;i++){
           for(var item in arguments[i]){
               dest[item] = arguments[i][item]
           }
       }
       return dest;
   };
   myFocus.extend({
       constr:function(settings){

       },
       fn:{},
       set:function(settings){
           return myFocus(settings)
       }
   });
   myFocus.fn = myFocus.constr.prototype;
   myFocus.fn.extend = function(){
       var dest = myFocus.fn;
       for(var i =0;i<arguments.length;i++){
           for(var item in arguments[i]){
               dest[item] = arguments[i][item]
           }
       }
       return dest;
   }
   myFocus.fn.extend({
       say:function(){
           alert('say')
       }
   });
    window.myFocus = myFocus;
})(window);
